﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace GenericModels
{
    [DataContract(IsReference=false)]
    public class Price
    {
        private int ticketId;
        private float ticketPrice;
        private string ticketType;

        //constructor
        
        public Price(int ticketId,string ticketType, float ticketPrice)
        {
            this.ticketId = ticketId;
            this.ticketPrice = ticketPrice;
            this.ticketType = ticketType;
        }
        public Price()
        {
        }

        public Price(string ticketType, float ticketPrice)
        {
            this.ticketId = 0;
            this.ticketPrice = ticketPrice;
            this.ticketType = ticketType;
        }

        #region Getters and Setters

        [DataMember]
        public int TicketId
        {
            get { return ticketId; }
            set { ticketId = value; }
        }

        [DataMember]
        public float TicketPrice
        {
            get { return ticketPrice; }
            set { ticketPrice = value; }
        }

        [DataMember]
        public string TicketType
        {
            get { return ticketType; }
            set { ticketType = value; }
        }

        #endregion
    }
}
